package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
public class PaymentResult {

    //缴费单据编号
    private Long id;

    //投保人(正式客户)
    private Client policyClient;

    //保单编号
    private String number;

    //保单总金额
    private BigDecimal totalPrice;

    //保险年限
    private Integer limitYear;

    //支付方式
    private Long payWayId;

    //保单截止日期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    //保单生效如期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;

    //保险公司
    private Company company;

    //当前操作人
    private Employee opEmployee;


}